//
//  AdressTabCell.m
//  ai2ban
//
//  Created by Heartbeats on 2018/1/18.
//  Copyright © 2018年 mac book pro. All rights reserved.
//

#import "AdressTabCell.h"


@interface AdressTabCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *phoneLab;
@property (weak, nonatomic) IBOutlet UILabel *adressLab;

@property (weak, nonatomic) IBOutlet UIButton *defAdressBtn;

@end

@implementation AdressTabCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setAdressModel:(AdressModel *)adressModel {
    _adressModel = adressModel;
    self.nameLab.text = adressModel.receiverName;
    self.phoneLab.text = adressModel.telephone;
    self.defAdressBtn.selected = adressModel.isDefault;
    self.adressLab.text = adressModel.adressInfo;;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
